﻿
@{
    ViewData["Title"] = "AddIRJob";
}

<h2>添加定时任务</h2>
<hr />
<div class="row">
    <div class="col-md-4">
        <form asp-action="AddIRJob">
            <div class="form-group">
                <label class="control-label">可选设备</label>
                <select id="devs" name="devs" multiple="multiple">
@foreach (Device dev in ViewBag.Devices)
{
    <option value="@dev.Id">@dev.Name</option>
}
                </select>
            </div>
            <div class="form-group">
                <label class="control-label">延迟时间</label>
                <select name="DelayMinutes">
                    <option value="0">0</option>
                    <option value="1">1</option>
                    <option value="2">2</option>
                    <option value="5">5</option>
                    <option value="10">10</option>
                    <option value="30">30</option>
                    <option value="60">60</option>
                    <option value="90">90</option>
                </select>
            </div>
            <input type="submit" name="Action" value="ON" />
            <input type="submit" name="Action" value="OFF" />
        </form>
    </div>
</div>

<div>
    <a asp-action="Index">Back to List</a>
</div>
